"""
    文件写操作实例
"""
# 写方式打开
file = open("file1.txt", 'w')
n = file.write('\n范欢欢\n加油哟\n')
print("写入%s个字符" % (n))
data = ["很高兴你来了",
        "接下来请继续努力额"]
file.writelines(data)
file.close()
